package com.startup.yellocar.service.impl;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.startup.yellocar.dto.QuarterDTO;
import com.startup.yellocar.dao.QuarterDAO;

import com.startup.yellocar.service.QuarterService;

@Service
@Transactional
public class QuarterServiceImpl implements QuarterService {

	@Autowired
	protected QuarterDAO quarterDAO;

	@Transactional
	public void insert(QuarterDTO quarterDTO){
		quarterDAO.insert(quarterDTO);
	}

	@Transactional
	public void update(QuarterDTO quarterDTO){
		quarterDAO.update(quarterDTO);
	}

	@Transactional
	public QuarterDTO get(int id) {
		return quarterDAO.get(id);
	}

	@Transactional
	public List<QuarterDTO> getAll() {
		return quarterDAO.getAll();
	}

	@Transactional
	public void delete(QuarterDTO quarterDTO){
		quarterDAO.delete(quarterDTO);
	}

}
